package week04;

import java.util.Scanner;

class UtilizatoriLicente2 {

public enum Utilizatori { Borza2,Director, Teleman, ResurseUmane}

    public static void main(String args[]) {
        Scanner myScanner = new Scanner(System.in);
        Utilizatori month;
        String luna;
        int numaruldelicente = 0;
        boolean Director;
        String Dir1;
boolean conditie;
       
    do{
        System.out.print("INTRODUCETI NUMELE UTILIZATORULUI ? ");
        luna = myScanner.next();
        month = Utilizatori.valueOf(luna);
        switch (month) {
              case Borza2:
                                        numaruldelicente = 2 ;
                break;

            case Teleman:
                numaruldelicente = 1;
                break;
                             case Director:
            System.out.print("Director (Vanzari/ResurseUmane)? ");
            // Director = myScanner.nextBoolean();
            Dir1 = myScanner.next();
            // int i=Dir1.compareTo("Vanzari");
             if   (Dir1.equals("Vanzari") ) {
               numaruldelicente = 29;

            }   else {
               numaruldelicente = 28;
            }
        }

        System.out.print(numaruldelicente);
        System.out.println(" licente");

 
    String Temp = new String();
    Temp="da";
    String Continuare = new String();
    
    
          System.out.print("Mai doriti inca o interogare ? (da/nu)");
          Continuare  = myScanner.next();
          conditie = Continuare.equals(Temp);
    } while (conditie);

   }

}
